package com.yc.springboot.web;

import com.yc.springboot.biz.BoardBiz;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class BoardAction {

    @Resource
    private BoardBiz boardBiz;

    @GetMapping("boards")
    public List<?> queryAll(){
        return  boardBiz.queryAll();
    }
}
